﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UFSSMaster.Master" AutoEventWireup="true" CodeBehind="message.aspx.cs" Inherits="UFSSWebApp.message" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageName" runat="server">
Message
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Body" runat="server">
<div class="Box" style="width:auto;">
    <table>
        <tr>
            <td align="left" valign="top"><asp:Label ID="lblReciever" runat="server" 
                    Text="To: " style="font-weight: 700"></asp:Label></td>
            <td><asp:TextBox ID="txtReciever" runat="server" ReadOnly="True" Enabled="False" 
                    Width="200px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="left" valign="top"><asp:Label ID="lblSubject" runat="server" 
                    Text="Subject: " style="font-weight: 700"></asp:Label></td>
            <td><asp:TextBox ID="txtSubject" runat="server" Width="443px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <asp:Label ID="lblMessage" runat="server" Text="Message: " 
                    style="font-weight: 700"></asp:Label>
                <br />
                (255 Max)</td>
            <td><asp:TextBox ID="txtMessage" runat="server" Height="115px" Width="443px" 
                    MaxLength="255" TextMode="MultiLine" ></asp:TextBox></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                <asp:RequiredFieldValidator ID="rfvMessage" runat="server" 
                    ControlToValidate="txtMessage" ErrorMessage="Message cannot be blank"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <input id="Reset1" type="reset" value="Reset" /></td>
            <td><asp:Button ID="btnSend" runat="server" Text="Send Message" 
                    onclick="btnSend_Click" /></td>
        </tr>
    </table>
</div>
</asp:Content>
